package gui.drawers;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.Vector;

import javax.swing.JPanel;

import dal.object.MapObject;

@SuppressWarnings("serial")
public abstract class Drawer extends JPanel {
	protected BufferedImage img;
	protected Graphics gr;
	protected Vector<MapObject> vmo;
	protected Dimension dimension;
	protected int w, h;
	protected Point location = new Point();
	
	/**
	 * @return
	 * 	the graphics of the current image	
	 */
	public Graphics2D getGraphics2D(){
		return (Graphics2D) gr;
	}
	
	/**
	 * deletes everything and repaints all
	 */
	public abstract void repaintAll();
}
